package cn.anlaser.entity;

import javax.persistence.EntityListeners;
import javax.persistence.MappedSuperclass;

import lombok.Data;
import lombok.EqualsAndHashCode;

import org.springframework.data.domain.Persistable;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

@MappedSuperclass
@EntityListeners({ AuditingEntityListener.class })
@Data
@EqualsAndHashCode(callSuper = false)
public abstract class BasicEntity implements Persistable<Long> {
	/**
	 * 
	 */
	private static final long serialVersionUID = 5054073539293092269L;

	@Override
	public boolean isNew() {
		
		return false;
	}

}
